package com.yz.xyt.service;

import com.github.pagehelper.PageInfo;
import com.yz.xyt.domain.ResponseResult;
import com.yz.xyt.domain.Student;
import com.yz.xyt.domain.vo.StudentImportVo;
import com.yz.xyt.domain.vo.StudentVo;

import java.util.List;
import java.util.Map;

public interface IStudentService {
    int deleteByPrimaryKey(Integer sid);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer sid);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    int updateByStudentNumberSelective(Student record);

    void syncAddStudent(List<Student> lists);

    Student findByStudentNumber(String studentNumber);

    void syncUpdateStudent(List<Student> lists);

    void syncDeleteStudent(List<Student> lists);

    PageInfo findStudentForPage(StudentVo studentVo);

    /**
     * 查询学生个人信息
     * @param studentNumber
     * @return
     */
    StudentVo findStudentInfo(String studentNumber);

    PageInfo findBySjForPage(StudentVo studentVo);

    List<Student> convertStudent(List<StudentImportVo> studentList);

    int deleteStudentByStudentNumber(String studentNumber);

    ResponseResult addStudent(Student student);

    ResponseResult updateStudent(Student student);

    ResponseResult deleteStudent(Student student);

    ResponseResult findStudentList(StudentVo studentVo);

    List<StudentVo> getStudents(StudentVo studentVo);
}
